package com.funmi.lizip.entity.dto.taskItem;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.funmi.lizip.entity.Options;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author itheima
 */
@Data
@ApiModel(value = "TaskItemAddRequest", description = "任务项的新增")
public class TaskItemAddRequest implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "任务表id")
    @TableField("task_id")
    private Integer taskId;

    @ApiModelProperty(value = "任务项名称")
    @TableField("task_item_name")
    private String taskItemName;

    @ApiModelProperty(value = "任务项类型	1.单选 2.多选 3.填空 4.图片 5.视频 6.文件")
    @TableField("type")
    private Integer type;

    @ApiModelProperty(value = "是否必填")
    @TableField("is_required")
    private Boolean isRequired;

    @ApiModelProperty(value = "排序")
    @TableField("sort")
    private String sort;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "create_at",select = false)
    private LocalDateTime createAt;

    @ApiModelProperty(value = "是否删除")
    @TableField(value = "is_delete",select = false)
    private Boolean isDelete;

    @ApiModelProperty(value = "options")
    private List<Options> options;

}
